@import '../styles/common.scss';
@import '../styles/icon.scss';
@import '../styles/header.scss';

header.home-header {
  margin: 0 auto;
  width: 1000px;
  height: 80px;
  &::before, &::after {
    content: ' ';
    display: block;
    position: absolute;
    top: -1000px;
    left: 50%;
    z-index: -1;
    transform: rotate(-30deg);
  }
  &::before {
    width: 2000px;
    height: 2000px;
    margin-top: -770px;
    margin-left: -1140px;
    border-radius: 160px;
    background: $primary;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  }
  &::after {
    width: 1600px;
    height: 1600px;
    margin-top: -520px;
    margin-left: -300px;
    border-radius: 100px;
    background: $secondary;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  }
  .home-title {
    color: white;
    font-size: 40px;
    font-weight: 100;
    margin: 0;
    line-height: 100px;
    float: left;
    height: 100px;
    width: 120px;
    box-sizing: border-box;
  }

  .common-header-nav {
    height: 100px;
    padding-top: 33px;
    margin-right: -40px;
  }
}

section.main-intro {
  color: white;
  font-weight: 100;
  width: 1000px;
  margin: 80px auto 200px;
  .main-intro-title {
    width: 500px;
    font-size: 60px;
    line-height: 70px;
    height: 140px;
    margin: 0;
  }
  .main-intro-subtitle {
    padding-top: 22px;
    padding-left: 6px;
    font-size: 16px;
    margin: 0;
  }
  .try-link {
    display: block;
    text-decoration: none;
    font-size: 14px;
    line-height: 34px;
    height: 34px;
    border-radius: 34px;
    border: 1px solid white;
    color: white;
    width: 136px;
    margin: 20px 0 0 6px;
    transition: background .3s, color .3s;
    text-align: center;
    font-weight: 400;
    &:hover {
      background: white;
      color: $primary;
    }
  }
}

section.install-section {
  height: 400px;
  width: 1000px;
  margin: 0 auto;
}

section.try-now {
  text-align: center;
  color: white;
  background: $primary;

  margin: 0 auto;
  width: 100%;
  height: 400px;
  padding-top: 50px;
  box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);

  .highlight-feature-list {
    width: 1050px;
    height: 160px;
    margin: 0 auto;
  }

  .highlight-feature-item {
    float: left;
    width: 350px;
    height: 160px;
  }

  .highlight-feature-title {
    width: 350px;
    height: 120px;
    margin: 0 auto;
    text-align: center;
    border-radius: 30px;
    .icon-container {
      height: 120px;
      width: 350px;
    }
    .iconfont {
      font-size: 100px;
      color: white;
      line-height: 120px;
    }
  }

  .highlight-feature-content {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    height: 40px;
    color: white;
  }

  .try-content {
    font-size: 30px;
    font-weight: 100;
    line-height: 68px;
    margin-top: 12px;
  }
  .try-link {
    display: block;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 40px;
    height: 40px;
    border-radius: 40px;
    border: 1px solid white;
    width: 160px;
    margin: 2px auto;
    transition: background .3s, color .3s;

    color: $primary;
    background: white;
    &:hover {
      color: white;
      background: $primary
    }
  }
}

footer.home-footer {
  width: 100%;
  text-align: center;
  margin: 0;
  color: white;
  background: $secondary;
  font-size: 12px;
  padding: 30px 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  .bottom-layout{
    zoom: 1;
    max-width: 1200px;
    margin: 0 auto;
    .fl{
      float:left;
    }
    .fr{
      float: right;
    }
    &::after{
      display: block;
      content:'';
      height: 0;
      width:100%;
      clear: both;
    }
    &.home-footer-copyright{
      .left{
        text-align: left;
        a{
          color: #fff;
          margin: 0 5px;
          &:hover{
            text-decoration: underline;
          }
        }
      }
    }
  }
}

section.home-section {
  width: 100%;
  height: 500px;
  position: relative;
  .intro-container {
    width: 1000px;
    height: 500px;
    margin: 0 auto;
    position: relative;
  }
  .intro-text {
    position: absolute;
    top: 170px;
    width: 300px;
  }
  .intro-title {
    width: 300px;
    font-size: 36px;
    line-height: 60px;
    font-weight: 400;
    color: $primary;
    margin: 0 0 20px;
    &::before {
      content: ' ';
      display: block;
      position: absolute;
      top: -10px;
      left: -40px;
      width: 80px;
      height: 80px;
      background: url('//img.alicdn.com/tfs/TB1MOv_dlfH8KJjy1XbXXbLdXXa-80-80.png');
      z-index: -1;
    }
  }
  .intro-content {
    width: 300px;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
  }
  .intro-multimedia {
    position: absolute;
    top: 50px;
    left: 500px;
  }
}

.presentation-1,
.presentation-3 {
  &::before, .intro-text {
    left: 0;
  }
}
.presentation-2 {
  &::before, .intro-text {
    right: 0;
  }
}

.presentation-1,
.presentation-2,
.presentation-3 {
  &::before{
    background-image: url('//img.alicdn.com/tfs/TB1AS5tc8fH8KJjy1XbXXbLdXXa-92-310.png');
    content: ' ';
    display: block;
    width: calc(50% - 350px);
    height: 310px;
    position: absolute;
    top: 95px;
    z-index: -10;
  }
}

.presentation-1,
.presentation-2 {
  .presentation-item {
    position: absolute;
    top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    border-radius: 20px;
    overflow: hidden;
  }
}

.presentation-1 {
  .presentation-item-chart {
    width: 700px;
    height: 400px;
    left: -100px;
    top: 0;
  }
}
.presentation-2 {
  .presentation-item {
    width: 340px;
    height: 190px;
    left: -600px;
  }
  .presentation-item-1 {
    margin-top: 0;
    margin-left: 0;
  }
  .presentation-item-2 {
    margin-top: 210px;
    margin-left: 0;
  }
  .presentation-item-3 {
    margin-top: 0;
    margin-left: 360px;
  }
  .presentation-item-4 {
    margin-top: 210px;
    margin-left: 360px;
  }
}
.presentation-3 {
  .presentation-item {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    transform: rotate(-30deg);
    overflow: hidden;
    &>img {
      width: 220px;
      height: 220px;
      margin-left: -35px;
      margin-top: -35px;
      transform: rotate(30deg);
    }
    &.presentation-react {
      top: 60px;
      left: 0px;
    }
    &.presentation-ng {
      top: 200px;
      left: 120px;
    }
    &.presentation-vue {
      top: 60px;
      left: 250px;
    }
    &.presentation-json {
      top: 200px;
      left: 370px;
    }
  }
}

#viser-mount-1-1 {
  margin-top: 25px;
  margin-left: -25px;
}
#viser-mount-2-1,
#viser-mount-2-3 {
  margin-top: 10px;
  margin-left: -45px;
}
#viser-mount-2-2 {
  margin-top: -8px;
  margin-left: -50px;
}
#viser-mount-2-4 {
  margin-top: -15px;
  margin-left: -40px;
}
